package com.messageHandler;

import com.model.Person;
import org.apache.activemq.command.ActiveMQBytesMessage;
import org.apache.activemq.util.ByteSequence;
import org.springframework.stereotype.Component;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.ObjectMessage;
import java.io.Serializable;
import java.util.Enumeration;

@Component
public class PersonMessageHandler {
    public  void handleMessage(Person person){
        System.out.println("收到消息："+person);
    }

    public  void handleMessage(String message){
        System.out.println("收到消息："+message);
    }

    public  void handleMessage(Object message){
        System.out.println("收到消息："+message);
    }
}
